import { getTid, getTime } from "./functions";

export class H2oUser{
  jwt:  string = "";
  name: string = "";
  avatar: string = "";
  role: string = "";
}

export class H2oAd{
  adId:string = "";
  title:string = "";
  img:string = "";
  views:number = 0;
  loves:number = 0;
}

export class H2oLifeTool{
  name: string = "";
  title:string = "";
  img:string = "";
}

export class H2oHotEvent{
  id:string = "";
  title:string = "";
  img: string = "";
  views:number = 0;
  loves:number = 0;
  author:string = "";
  content:string = "";
  time:string = "";
  location:string = "";
}

export class H2oNotice{
  id:string = "";
  img:string = "";
  title:string = "";
  author:string = "";
  content:string = "";
  expired:string = "";
  location:string = "";
  tag:string = "";
}

export class H2oGoods{
  id:string = "";
  thumb:string = "";
  title:string = "";
  desc:string = "";
  author:string = "";
  tag:string = "";
  num:number = 0;
  price:number = 0;
  origin_price:number = 0;
  currency:string = "";
}

export class H2oMoment{
  tid:string = getTid();
  time: string = getTime();
  title:string = "";
  content:string = "";
  location:string = "";
  img:string = "";
  ctime:string = "";
}

export class H2oUpdate{
  tid:string = getTid();
  time: string = getTime(); 
  id:string = "";
  tag:string = "";
  views:number = 0;
  loves:number = 0; 
}